package view.other
{
	import com.greensock.TweenLite;
	import com.greensock.easing.Circ;
	
	import flash.display.Bitmap;
	import flash.events.Event;
	import flash.geom.Point;
	
	import manager.AssetManage;
	
	import utils.GameUtils;
	
	import view.base.BaseView;

	/**
	 *@author CrazyChen
	 *2013-6-9
	 *public class BulletHoleView extends BaseView
	 *import view.base.BaseView;
	 
	 */
	public class BulletHoleView extends BaseView
	{
	
		public function BulletHoleView()
		{
			super();
		}
		
		public function createBulletHole(p1:Point,p2:Point):void{
			var cls:Class = AssetManage.bulletHole;
			var bmp:Bitmap = new cls();
			this.addChild(bmp);
			bmp.x = p1.x;
			bmp.y = p1.y;
			TweenLite.to(bmp, 1, {x:p2.x, y:p2.y, ease:Circ.easeIn});
		}
		
//		override protected function loop(event:Event):void{
//			for each(var bm:Bitmap in bmpAry){
//				bm.
//			}
//		}
	}
}